projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0432071
)
gtk-demo: Recognize .svg as images
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 6 Oct 2020 19:11:08 +0000
(15:11 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 6 Oct 2020 19:11:08 +0000
(15:11 -0400)
We can't guarantee that we can load it, but worst
case you'll get a missing image.
demos/gtk-demo/main.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/main.c
b/demos/gtk-demo/main.c
index db66928c88ed8bb631409d08b4debc3bf1ee4aa1..84efebba41e70ec2d52b4758b180dee410f483b2 100644
(file)
--- a/
demos/gtk-demo/main.c
+++ b/
demos/gtk-demo/main.c
@@
-410,6
+410,7
@@
static struct {
{ ".gif", NULL, display_image },
{ ".jpg", NULL, display_image },
{ ".png", NULL, display_image },
+ { ".svg", NULL, display_image },
{ ".c", "c", display_text },
{ ".css", "css", display_text },
{ ".glsl", NULL, display_text },